package io.gitee.zhangbinhub.admin.oauth.po

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull

/**
 * @since JDK 11
 */
@Schema(description = "运行配置参数")
data class RuntimePo(

    @field:Schema(description = "配置ID，更新时必填")
    var id: String? = null,

    @field:Schema(description = "名称，查询时可为空", requiredMode = Schema.RequiredMode.REQUIRED)
    @get:NotBlank(message = "参数名称不能为空")
    var name: String? = null,

    @field:Schema(description = "值")
    var value: String? = null,

    @field:Schema(description = "描述")
    var configDes: String? = null,

    @field:Schema(description = "是否启用，查询时可为空", requiredMode = Schema.RequiredMode.REQUIRED)
    @get:NotNull(message = "是否启用不能为空")
    var enabled: Boolean? = null
)
